package com.sfpay.merchant.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sfpay.merchant.auth.entity.system.SysUserOnline;

import java.util.List;

/**
 * <p>
 * 在线用户记录 服务类
 * </p>
 *
 * @author fangchen
 * @since 2022-08-09
 */
public interface ISysUserOnlineService extends IService<SysUserOnline> {

    void removeUserCache(String loginName, String sessionId);

    void replaceInsert(SysUserOnline sysUserOnline);

    List<SysUserOnline> selectUserOnlineList(SysUserOnline userOnline);

    SysUserOnline selectOnlineById(String sessionId);

    void saveOnline(SysUserOnline online);
}
